#!/bin/bash # It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to install a profile Mac # Script Arguments - "" (Should be the exact name as in dependency file) # Dependency Files - "" (Should be in .mobileconfig format) # Configuration - COMPUTER PROFNAME=$1 echo "$PROFNAME" profiles -I -F "$PROFNAME" errcode=$? if [ "$errcode" -ne 0 ]; then echo "" echo "Failed to push certificate with errorcode $errcode" 1>&2 echo "" exit 1 fi echo "Successfully installed certificate" 1>&2